<?php
    include_once '../connection/databaseHandler.php';
    $database = new DatabaseHandler();

    $id = $_GET['id'];
    $query = "UPDATE ".$database->t_user." SET password='".md5("password")."' WHERE username='".$id."'";
    $result = $database->execQuery($query);
    $count = mysql_num_rows($result);

    header("location:../admin.php?ref=resetSuccess");
?>
